<?php
/* QQ:34734852
 * 业务联系：小鱼
 */
	  $INFO = str_replace('\\', '/', strtolower($_SERVER['PATH_INFO']));
	  empty( $INFO ) && $INFO = str_replace('\\', '/', strtolower($_SERVER['REDIRECT_URL']));
	  empty( $INFO ) && $INFO = str_replace('\\', '/', strtolower($_SERVER['REQUEST_URI']));
	  empty( $INFO ) && $INFO = str_replace('\\', '/', strtolower($_SERVER['UNENCODED_URL']));
	  empty( $INFO ) && $INFO = str_replace('\\', '/', strtolower($_SERVER['HTTP_X_ORIGINAL_URL']));
	  
	  $INFO = str_replace(SUBDIR, '', str_replace('index.php', '', $INFO));
	  $INFO = preg_replace('/^\/+/', '', $INFO);
	  
	  $INFO = explode('?', $INFO);
	  $INFO = $INFO[0];
	  $RUQU = explode('/', $INFO);
	  /*----------------*/
	   $h = $_GET['h'];
	   $m = $_GET['m'];
	   $c = $_GET['c'];
	   !empty( $h ) && $RUQU[0] = $h;
	   !empty( $m ) && $RUQU[1] = $m;
	   !empty( $c ) && $RUQU[2] = $c;
	   unset( $_GET['h'], $_GET['m'], $_GET['c'], $h, $m, $c);
	  /*---------------*/
	  $HOME = $RUQU[0];
	  $MOD  = $RUQU[1];
	  $ACT  = $RUQU[2];
	  !empty( $HOME )  or $HOME = 'home';
	  !empty( $MOD )   or $MOD  = 'index';
	  !empty( $ACT )   or $ACT  = 'index';
	  unset( $RUQU[0], $RUQU[1], $RUQU[2] ); 
	  
	  $Parameter = array();
	  $PathDeng = preg_replace('/&$/is', '', preg_replace('/([^\/]*)\/([^\/]*)\/?/is', '$1=$2&', preg_replace('/^\//is', '', preg_replace('/\/$/is', '',  join('/', $RUQU)))));
	  parse_str($PathDeng, $PathString);
	  parse_str($_SERVER['QUERY_STRING'], $Qyuery_String);
	  
	  
	  $Parameter = array_merge( $PathString, $Qyuery_String );
	  foreach( $Parameter  as $k => $v ) {
		  $Parameter[ mb_convert_encoding(rawurldecode($k), 'UTF-8', 'GBK') ] = QueryStringReplace(mb_convert_encoding(rawurldecode($v), 'UTF-8', 'GBK'));
	  }
	  ksort( $Parameter );
	  unset( $PathDeng,  $PathString, $Qyuery_String, $k, $v );
	  define('AREA', $HOME);
	  define('MODU', $MOD);
	  define('ACTI', $ACT);
	  unset( $ACT, $HOME, $INFO, $K, $KEY, $key, $MOD, $RUQU, $val, $VAL, $V, $QuerString, $QuerString_exp,  $QuerString_val, $QuerString_fenli, $Parameter['q'], $Parameter['m'], $Parameter['a'] );
	  include str_replace('\\', '/', __DIR__) . '/Phpinfo.Class.php';
	  PhpInfo::inspect();